function thedata = readforinter(filename, vars_name,dataLines)

%% 输入处理
% 要求txt的格式是cst直接导出的三列文件，没有修改，程序会去掉前三行
% 建议把导出的数据按变量单独存放于一个文件夹

% 如果不指定 dataLines，请定义默认范围
if nargin < 3
    dataLines = [4, Inf]; 
end

%% Set up the Import Options and import the data
opts = delimitedTextImportOptions("NumVariables", 3);

% 指定范围和分隔符
opts.DataLines = dataLines;
opts.Delimiter = "\t";

% 指定列名称和类型
opts.VariableNames = ["Fre", "RE",'IM'];
opts.VariableTypes = ["double", "double", "double"];

% 指定文件级属性
opts.ExtraColumnsRule = "ignore";
opts.EmptyLineRule = "read";

% 导入数据
thedata = readtable(filename, opts);
thedata = table2array(thedata);
[r,c] = size(thedata);
% disp(['这一组的变量是',num2str(vars_name)]);
% newvalue = eval(vars_name);
% newvalue = vars_name;
% thedata = [thedata,ones(r,1)*newvalue];

end